package com.luanhj.system.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.github.yulichang.base.MPJBaseMapper;
import com.luanhj.common.core.domain.entity.SysMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author luanhj
 * @date 2025/9/5 17:01
 * @description
 */
@InterceptorIgnore(tenantLine = "1") // 忽略多租户拦截器
@Mapper
public interface NoTenantSysMenuMapper extends MPJBaseMapper<SysMenu> {
    /**
     * 根据用户ID查询菜单
     *
     * @param userId 用户ID
     * @return 菜单列表
     */
     List<SysMenu> selectMenuTreeByUserId(Long userId);
}
